package com.woniu.goodsservice.controller;

import com.woniu.goodsservice.entity.Goodscomments;
import com.woniu.goodsservice.service.GoodscommentsService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("goodscomments")
public class GoodscommentsController {
    @Resource
    private GoodscommentsService goodscommentsService;

    @GetMapping("selectOne")
    public Goodscomments selectOne(Integer id) {
        return goodscommentsService.queryById(id);
    }

}